package org.common.treebuilder;

import java.util.Comparator;

/**
 *
 * @author gus
 */
public interface TreeNodeCollection<NodeType, T> extends Iterable<NodeType>
{
    public Comparator<NodeType> getComparator();
    public NodeType   findNode(T object);
    public NodeType   createTreeNode(T object) throws Exception;
    public void removeTreeNode(NodeType node) throws Exception;
    public boolean contains(NodeType node);
    public boolean isEmpty();
    public int size();
}
